package com.icesoft.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.icesoft.framework.core.annotation.Entity;
import com.icesoft.framework.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 组织机构关系
 *
 * @author ${author}
 * @date 230326
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_sub_org")
@Entity(module = "system", describe = "组织机构关系")
public class SubOrg extends BaseEntity {

	@TableField
	@Column(value = "org_id", comment = "组织机构", length = 40, type = MySqlTypeConstant.BIGINT)
	private Long orgId;

	@TableField
	@Column(value = "sub_org_id", comment = "子部门", length = 40, type = MySqlTypeConstant.BIGINT)
	private Long subOrgId;

	public SubOrg() {
	}

	public SubOrg(Long sysOrgId, Long sysSubOrgId) {
		this.orgId = sysOrgId;
		this.subOrgId = sysSubOrgId;
	}
}
